//
//  CBCMenuView.h
//  CBCReader
//
//  Created by Labanotation on 16/6/1.
//  Copyright © 2016年 okwei. All rights reserved.
//

#import <UIKit/UIKit.h>
#import "CBCRecordModel.h"
#import "CBCTopMenuView.h"
@class CBCMenuView;
@class CBCBottomMenuView;
@protocol CBCMenuViewDelegate <NSObject>
@optional
-(void)menuViewDidHidden:(CBCMenuView *)menu;
-(void)menuViewDidAppear:(CBCMenuView *)menu;
-(void)menuViewInvokeCatalog:(CBCBottomMenuView *)bottomMenu;
-(void)menuViewJumpChapter:(NSUInteger)chapter page:(NSUInteger)page;
-(void)menuViewFontSize:(CBCBottomMenuView *)bottomMenu;
-(void)menuViewChapterProgress:(CGFloat)progress;

-(void)menuViewMark:(CBCTopMenuView *)topMenu;
-(void)menuViewBack:(CBCTopMenuView *)topMenu;
-(void)menuViewShare:(CBCTopMenuView *)topMenu;
@end
@interface CBCMenuView : UIView
@property (nonatomic,weak) id<CBCMenuViewDelegate> delegate;
@property (nonatomic,strong) CBCRecordModel *recordModel;
@property (nonatomic,strong) CBCTopMenuView *topView;
@property (nonatomic,strong) CBCBottomMenuView *bottomView;
@property (nonatomic,assign) CGFloat currentProgress;//当前进度显示
@property (nonatomic,assign) BOOL isHiddenShare;
-(void)showAnimation:(BOOL)animation;
-(void)hiddenAnimation:(BOOL)animation;
@end
